home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
TSMTE.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
3KB
|
131 lines
{
File: TSMTE.p
Contains: Text Services Managerfor TextEdit Interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT TSMTE;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __TSMTE__}
{$SETC __TSMTE__ := 1}
{$I+}
{$SETC TSMTEIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __TEXTEDIT__}
{$I TextEdit.p}
{$ENDC}
{$IFC UNDEFINED __DIALOGS__}
{$I Dialogs.p}
{$ENDC}
{$IFC UNDEFINED __APPLEEVENTS__}
{$I AppleEvents.p}
{$ENDC}
{$IFC UNDEFINED __TEXTSERVICES__}
{$I TextServices.p}
{$ENDC}
{ #include <Gestalt.i> }
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
{$IFC FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE }
{ signature, interface types }
CONST
kTSMTESignature = 'tmTE';
kTSMTEInterfaceType = 'tmTE';
kTSMTEDialog = 'tmDI';
{ update flag for TSMTERec }
kTSMTEAutoScroll = 1;
{ callback procedure definitions }
TYPE
TSMTEPreUpdateProcPtr = ProcPtr; { PROCEDURE TSMTEPreUpdate(textH: TEHandle; refCon: LONGINT); }
TSMTEPostUpdateProcPtr = ProcPtr; { PROCEDURE TSMTEPostUpdate(textH: TEHandle; fixLen: LONGINT; inputAreaStart: LONGINT; inputAreaEnd: LONGINT; pinStart: LONGINT; pinEnd: LONGINT; refCon: LONGINT); }
TSMTEPreUpdateUPP = UniversalProcPtr;
TSMTEPostUpdateUPP = UniversalProcPtr;
{ data types }
TSMTERecPtr = ^TSMTERec;
TSMTERec = RECORD
textH: TEHandle;
preUpdateProc: TSMTEPreUpdateUPP;
postUpdateProc: TSMTEPostUpdateUPP;
updateFlag: LONGINT;
refCon: LONGINT;
END;
TSMTERecHandle = ^TSMTERecPtr;
CONST
uppTSMTEPreUpdateProcInfo = $000003C0;
uppTSMTEPostUpdateProcInfo = $000FFFC0;
FUNCTION NewTSMTEPreUpdateProc(userRoutine: TSMTEPreUpdateProcPtr): TSMTEPreUpdateUPP;
{$IFC NOT GENERATINGCFM }
INLINE $2E9F;
{$ENDC}
FUNCTION NewTSMTEPostUpdateProc(userRoutine: TSMTEPostUpdateProcPtr): TSMTEPostUpdateUPP;
{$IFC NOT GENERATINGCFM }
INLINE $2E9F;
{$ENDC}
PROCEDURE CallTSMTEPreUpdateProc(textH: TEHandle; refCon: LONGINT; userRoutine: TSMTEPreUpdateUPP);
{$IFC NOT GENERATINGCFM}
INLINE $205F, $4E90;
{$ENDC}
PROCEDURE CallTSMTEPostUpdateProc(textH: TEHandle; fixLen: LONGINT; inputAreaStart: LONGINT; inputAreaEnd: LONGINT; pinStart: LONGINT; pinEnd: LONGINT; refCon: LONGINT; userRoutine: TSMTEPostUpdateUPP);
{$IFC NOT GENERATINGCFM}
INLINE $205F, $4E90;
{$ENDC}
{$ENDC}
{$IFC NOT FOR_OPAQUE_SYSTEM_DATA_STRUCTURES }
TYPE
TSMDialogRecordPtr = ^TSMDialogRecord;
TSMDialogRecord = RECORD
fDialog: DialogRecord;
fDocID: TSMDocumentID;
fTSMTERecH: TSMTERecHandle;
fTSMTERsvd: ARRAY [0..2] OF LONGINT; { reserved }
END;
TSMDialogPeek = ^TSMDialogRecord;
{$ENDC}
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := TSMTEIncludes}
{$ENDC} {__TSMTE__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}